package com.hzgj.bcl.redis;

import redis.clients.jedis.exceptions.JedisException;

public interface KeyOperation {
    /**
     * Callback of jedis.
     * <p>
     * <b>Note:</b> don't close jedis instance passed to this method.
     *
     * @return
     * @throws Throwable any exception when invoke jedis commands.
     */
    byte[] getKey() throws JedisException;
}